import Vue from 'vue'
// main.js
import uView from "uview-ui";
Vue.use(uView);
import App from './App'

//引入vuex
import store from './store'
Vue.prototype.$store = store


//新加挂载
import {myRequest} from 'util/api.js'
Vue.prototype.$myRequest = myRequest

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App,
	store
})

//http拦截器
import httpInterceptor from '@/common/http.interceptor.js'
Vue.use(httpInterceptor,app)

import httpApi from '@/common/http.api.js'
Vue.use(httpApi,app)


app.$mount()
